<?php

class Application_Form_Multimedianote extends Zend_Form
{
    public function init()
    {
        $this->setName('Multimedianote');
        
        $note_id = new Zend_Form_Element_Hidden('note_id');
        $note_id->addFilter('Int');
        $file_id = new Zend_Form_Element_Hidden('file_id');
        $file_id->addFilter('Int');
        
        $top = new Zend_Form_Element_Text('top');
        $top->setLabel('Canh trên')
        	    ->addFilter('Int');
        $left = new Zend_Form_Element_Text('left');
        $left->setLabel('Canh trái')
        	    ->addFilter('Int');
        $width = new Zend_Form_Element_Text('width');
        $width->setLabel('Chiều rộng')
        	    ->addFilter('Int');
        $height = new Zend_Form_Element_Text('height');
        $height->setLabel('Chiều cao')
        	    ->addFilter('Int');
        
        $content = new Zend_Form_Element_Text('content');
        $content->setLabel('Ghi chú')
              ->setRequired(true)
              ->addFilter('StripTags')
              ->addFilter('StringTrim')
              ->addValidator('NotEmpty');      
               	
	
        
        $submit = new Zend_Form_Element_Submit('submit');
        $submit->setAttrib('id', 'AddButton');

        $cancel = new Zend_Form_Element_Submit('cancel');
        $cancel->setAttrib('id', 'CancelButton');
        
        $this->addElements(array($note_id, $file_id, $top,$left, $width,$height, $content,   $submit, $cancel));
    }
}